/*
 * All content copyright http://www.j2eefast.com, unless 
 * otherwise indicated. All rights reserved.
 * No deletion without permission
 */
package com.j2eefast.produce.pms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.j2eefast.produce.pms.entity.PmsContractEntity;
import com.j2eefast.produce.pms.entity.PmsSchemeEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>报价方案</p>
 *
 * @author: summer
 * @date: 2021-05-29 16:47
 * @web: http://www.letukeji.cn
 * @version: 1.0.1
 */
public interface PmsSchemeMapper extends BaseMapper<PmsSchemeEntity> {

	public boolean deleteByIds(@Param("ids") Long[] ids);
	public boolean updateCheck(@Param("id") Long id, @Param("userId") Long userId);
	public PmsSchemeEntity selectSerial(@Param("id") Long id);

	/**
	 * 页面查询流程实例分页
	 * @return
	 */
	Page<PmsSchemeEntity> findPage(IPage<?> params,
                                         @Param("firsts") String firsts,
                                         @Param("seconds") String seconds,
								   		 @Param("projectName") String projectName,
								   		 @Param("projectAddr") String projectAdrr,
								   		 @Param("amount") String amount,
								   		 @Param("beginTime") String beginTime,
								   		 @Param("endTime") String endTime,
								         @Param("projectName2") String projectName2,
								         @Param("projectAddr2") String projectAddr2,
                                         @Param("sql_filter") String sql_filter);


	List<PmsSchemeEntity> findList(IPage<?> params,
								   @Param("projectName") String projectName,
								   @Param("sql_filter") String sql_filter);


}
